<script type="text/javascript">
    var admission = new Array(<{$number_of_program}>);
    for(i=0;i<admission.length;i++)
    {
        admission[i]=new Array(2);
        for (j=0;j<2;j++)
        {
            admission[i][j] = false;
        }
    }
    
    function BlindDown(element)
    {
       new Effect.BlindDown(element, 
       {duration:1, from:0, to:1.0});
    }
    function BlindUp(element)
    {
       new Effect.BlindUp(element, 
       { duration:0.5});
    }
    
    function toogleTab(index,type)
    {
        if (admission[index][type])
        {
            admission[index][type] = false;
            BlindUp('admission' + index.toString() + type.toString());
        }
        else
        {
            admission[index][type] = true;
            BlindDown('admission' + index.toString() + type.toString());
        }
    }  
</script>